import { createApp } from 'vue'
import { setupPinia } from '@/store'
import router from '@/router'
import App from './App.vue'
import './styles/style.scss'
// @ts-ignore
import { StickyTable } from '@planckdev/element-plus/directives'
// 国际化
import i18n from '@/lang/index'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const app = createApp(App)
//  添加element图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
setupPinia(app)
app.directive('StickyElTable', StickyTable)
app.use(router).use(i18n).mount('#app')
